.advertisement-frame {
  display: flex;
  gap: 20px;
  /* 使用 gap 替代 column-gap */
  margin-bottom: 20px;

  .shared-advertisement {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    padding: 10px 20px;

    :deep(.el-carousel__container) {
      height: auto;
    }

    .adv-item-block {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      color: #86909c;
      cursor: default;
      height: 100%;

      .adv-title1-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        font-size: 14px;

        .title {
          font-size: 20px;
          font-weight: 600;
          line-height: 36px;
          height: 36px;
          color: #1d2129;
          padding-right: 10px;
        }

        .text-primary {
          color: var(--primary-color);
          cursor: pointer;
          display: flex;
          align-items: center;
          justify-content: center;
          flex-direction: row;
          .box-item {
            .content-box {
              display: flex;
              flex-direction: column;
              span {
                display: inline-block;
              }
            }
          }
        }
      }

      .adv-item-cover {
        position: relative;
        width: 100%;
        flex: 1;
        cursor: pointer;

        &::before {
          content: '';
          display: block;
          padding-top: 56.25%;
        }

        .adv-item-cover-image {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          overflow: hidden;

          .adv-item-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
          }
        }
      }

      .adv-item-info {
        .adv-title2 {
          padding-top: 8px;
          font-size: 12px;
          line-height: 18px;

          .one-line-show {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 12px;
            line-height: 18px;

            .pr18 {
              padding-right: 18px;
              padding-top: 8px;
            }
          }

          .title {
            font-size: 16px;
            color: #1d2129;
            line-height: 36px;
            cursor: pointer;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }
        }
      }
    }
  }

  /* 轮播图点样式 */
  :deep(.el-carousel__indicator--horizontal) {
    padding: 0 4px;
    margin-bottom: 10px;

    .el-carousel__button {
      width: 4px;
      height: 4px;
      border-radius: 4px;
      background: #93b4ff;
    }

    &.is-active .el-carousel__button {
      width: 12px;
      border-radius: 4px;
      background: var(--primary-color);
    }
  }
}

/* 媒体查询 */
@media screen and (max-width: 1780px) {
  .advertisement-frame {
    flex-direction: row;

    .shared-advertisement {
      margin-bottom: 12px;
    }
  }
}

@media screen and (min-width: 1780px) {
  .advertisement-frame {
    flex-direction: column;

    .advertisement-one {
      margin-right: 20px;
    }

    /* 轮播图高度 */
    :deep(.el-carousel__container) {
      height: 417px;
      /* 固定高度 */
    }
  }
}
